package com.hc.serviceimp;

import java.util.List;

import com.hc.dao.HouseDao;
import com.hc.daoimp.HouseDaoImpl;
import com.hc.entity.House;
import com.hc.service.HouseService;

public class HouseServiceImpl implements HouseService {
	//获取dao包的执行对象
	HouseDao hDao=new HouseDaoImpl();
	
	//添加房屋信息
	@Override
	public void addHouse(House house) {
		hDao.addHouse(house);
		
	}
	//条件查询息
	@Override
	public List<House> pageSelect(String dq, String xq, int mj, int jg, String zt) {
		List<House> pageSelect = hDao.pageSelect(dq, xq, mj, jg, zt);
		return pageSelect;
	}
	@Override
	public House getDetails(int id) {
		
		House house = hDao.getDetails(id);
		return house;
	}
	@Override
	public void update(House house) {
		
		hDao.update(house);
	}
	@Override
	public List<House> show() {
		List<House> show = hDao.show();
		
		return show;
	}
	@Override
	public void delete(int id) {
		hDao.delete(id);
		
	}

	
}
